import java.util.Random;


public class Test {

	public static void main(String[] args) {
		
		Random random = new Random(1);
		for(int i =0;i<10;i++){
			int temp = random.nextInt();
			System.out.print(temp+" ");
		}
		System.out.println();
		Random random1 = new Random(1);
		for(int i=0;i<10;i++){
			int temp = random1.nextInt();
			System.out.print(temp+" ");
		}
		
	}

}